import request from '@/common/request'

export function getlimit (query) {
  return request({
    url: '/api/limit/general',
    method: 'get',
    params: query
  })
}

export function updatelimit (data) {
  return request({
    url: '/api/limit/general/save',
    method: 'post',
    data
  })
}

export function getsenior (id) {
  return request({
    url: '/api/limit/senior/' + id,
    method: 'get'
  })
}

export function updatesenior (data) {
  return request({
    url: '/api/limit/senior/save',
    method: 'post',
    data
  })
}
